const defaultSettings = require('@/settings.js')

export default (_self) => {
  return {
    editBtn: true,
    delBtn: true,
    addBtn: true,
    labelWidth: 140,
    index: true,
    indexLabel: '序号',
    align: 'center',
    headerAlign: 'center',
    border: true,
    dialogWidth: '50%',
    stripe: false,
    searchShow: false,
    addBtnText:'消费办卡',
    addTitle:'消费办卡',
    searchShowBtn: false,
    size: 'mini',
    // excelBtn: true,
    // selection: true,
    searchMenuSpan: 4,
    props: {
      label: 'label',
      value: 'value'
    },
    column: [
      {
        prop: 'name',
        label: '名称',
        rules: [
          {
            required: true,
            message: '请输入',
            trigger: 'blur'
          }
        ]
      },
      {
        prop: 'price',
        label: '价格',
        rules: [
          {
            required: true,
            message: '请输入',
            trigger: 'blur'
          }
        ]
      },
      {
        prop: 'totalNum',
        label: '总次数',
        rules: [
          {
            required: true,
            message: '请输入',
            trigger: 'blur'
          }
        ]
      },
      {
        prop: 'type',
        label: '类型',
        type: 'select',
        dicData: [
          {
            value: 1,
            label: '单次'
          },
          {
            value: 2,
            label: '次卡'
          },
          {
            value: 3,
            label: '羽毛球'
          }
        ],
        rules: [
          {
            required: true,
            message: '请输入',
            trigger: 'blur'
          }
        ]
      },

      {
        prop: 'effectDays',
        label: '有效天数',
        type: 'number',
        row: true,
        rules: [
          {
            required: true,
            message: '请输入',
            trigger: 'blur'
          }
        ]
      },
      {
        prop: 'description',
        label: '描述',
        // hide:true,
        formslot: true,
        type: 'textarea',
        rules: [
          {
            required: true,
            message: '请输入',
            trigger: 'blur'
          }
        ]
      },
      {
        prop: 'agreement',
        label: '协议',
        formslot: true,
        // hide:true,
        type: 'textarea',
        rules: [
          {
            required: true,
            message: '请输入',
            trigger: 'blur'
          }
        ]
      }
    ]
  }
}
